package com.cloud.controller;



import com.cloud.entity.TStorage;

import com.cloud.service.StorageHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@Slf4j
@RestController
public class StorageController {

    @Resource
    StorageHandler handler;

    @RequestMapping(value = "/storage/total")
    public String create() {
        String message = "创建订单成功！";

        TStorage createStorage =  new TStorage();
        createStorage.setProductId(55555555L);
        handler.createStorage(createStorage);
        return message;
    }
}

